package com.tianji.learning.controller.admin;


import com.tianji.common.domain.dto.PageDTO;
import com.tianji.learning.domain.query.NotePageQuery;
import com.tianji.learning.domain.vo.NoteVO;
import org.springframework.web.bind.annotation.*;
import com.tianji.learning.service.ILearningNoteService;
import com.tianji.learning.domain.po.LearningNote;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  控制器
 * </p>
 *
 * @author author
 */
@Api(tags = "LearningNote管理")
@RestController
@RequiredArgsConstructor
@RequestMapping("/admin/notes")
public class LearningNoteController {

    private final ILearningNoteService learningNoteService;

    @GetMapping("/{id}")
    @ApiOperation("管理端查询笔记详情")
    public NoteVO selectById(@PathVariable("id") Long id){
        return learningNoteService.selectById(id);
    }


}
